package org.example.factoryMethod;

public class NvWa {

    public static void main(String[] args) {
        Human whiteHuman = (new whiteHumanFactory()).createHuman();
        whiteHuman.getColor();
        whiteHuman.talk();

        Human blackHuman=(new BlackHumanFactory()).createHuman();
        blackHuman.getColor();
        blackHuman.talk();
    }
}
